import { configureStore } from "@reduxjs/toolkit";
// 3.引入 reducer
import tabReducer from './reducers/tab'
import routerReducer from './reducers/route'

// 1.通过 configureStore 创建 store,然后引入各个 reducer,前往reducers文件夹中创建切片
export const myStore = configureStore({
  reducer: {
    // 4.放置 reducer， 前往index.js 主文件挂载
    tabReducer,
    routerReducer
  },
});